import request from '@/utils/request'

// 登录页接口
const getLoginUrl = "/api/UserLogin/Login"
export function getLogin(data) {
    return request({
        url: getLoginUrl,
        method: "post",
        data
    })
}

// 注册页接口
const registerUrl = "/api/UserLogin/AddUser"
export function register(data) {
    return request({
        url: registerUrl,
        method: "post",
        data
    })
}

// 注册页接口  
let url = process.env.NODE_ENV === "development" ? "" : window.localStorage.baseUrl;
const GetVerifCodeImgUrl = url + "/api/UserLogin/GetVerifCodeImg"
export { GetVerifCodeImgUrl }